// 通用的标签样式

@import "Color";

.t-btn {
  border: none;
  color: #ffffff;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 4px;
  opacity: 0.8;
  &:hover{
    opacity: 1.0;
  }
}

.t-input{
  width: 170px;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #555555;
  &:focus{
    outline: none;
    border: 1px solid #53a0ff;
  }
}

.t-table{
  // var
  $f-size:14px;
  $height:35px;
  $title-w:600;
  $content-w:500;
  $bg-color:#d9edf7;
  $bg-tip-color:#FFDEAD;

  // css
  width: 100%;
  border: 1px solid rgba(50,50,50,0.2);
  border-spacing: 0;
  // 防止tr的border失效
  border-collapse:collapse;
  thead>tr{
    // 标题行
    border-bottom: 2px solid rgba(100,100,100,0.3);
    &:hover{
      background-color: #ffffff;
    }
    th{
      padding: 0 10px;
      font-weight: $title-w;
      font-size: $f-size;
      height: $height;
      line-height: $height;
      text-align: left;
    }
  }
  tbody>tr{
    // 间隔选择每行元素
    &:nth-of-type(2n - 1){
      background-color: $bg-color;
    }

    &:hover{
      background-color: rgba(200,200,200,0.3);
    }

    td{
      padding: 0 10px;
      font-weight: $content-w;
      font-size: $f-size;
      height: $height;
      line-height: $height;
      border-bottom: 1px solid rgba(50,50,50,0.2);
    }
  }
  tfoot>tr>td{
    padding: 0 10px;
    height: $height;
    line-height: $height;
    border-bottom: 1px solid rgba(50,50,50,0.2);
    text-align: center;
    background-color: #ffffff;
    button{
      border: none;
      background-color: $t-blue;
      color: #ffffff;
      font-size: 14px;
      padding: 6px 10px;
      border-radius: 4px;
      opacity: 0.8;
      &:hover{
        opacity: 1.0;
      }
      &:disabled{
        cursor: not-allowed;
      }
    }
    label{
      font-size: 14px;
      padding: 6px 10px;
      font-weight: bold;
    }
  }

}
